<?php
declare (strict_types=1);

namespace app\api\controller;

use app\common\model\Bank as BankModel;
use app\common\tool\Result;
use think\Response;

class Bank extends Base
{
    public function index(): Response
    {
        $list = BankModel::field('id,title')->where(['status' => 1])->order('sort desc,id asc')->select();

        return Result::success('success', $list);
    }
}